﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LJSheng.Data
{
    /// <summary>
    /// 提现记录
    /// </summary>
    public partial class Pay
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid gid { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }

        /// <summary>
        /// 用户GID
        /// </summary>
        public Guid usergid { get; set; }

        /// <summary>
        /// 订单GID
        /// </summary>
        public Guid ddgid { get; set; }

        /// <summary>
        /// 支付状态[1=支付成功 2=未支付 3=已退款 4=交易关闭]
        /// </summary>
        public int pay_status { get; set; }

        /// <summary>
        /// 支付类型[1=支付宝 2=微信 3=线下汇款]
        /// </summary>
        public int pay_type { get; set; }

        /// <summary>
        /// 提现时间
        /// </summary>
        public DateTime? pay_time { get; set; }

        /// <summary>
        /// 支付金额
        /// </summary>
        public decimal rmb { get; set; }

        /// <summary>
        /// 类型[0=会员消费 1=会员注册 2=商家注册 3=商家提现]
        /// </summary>
        public int lx { get; set; }

        /// <summary>
        /// 操作人
        /// </summary>
        [StringLength(50)]
        public string gly { get; set; }

        /// <summary>
        /// 系统订单号
        /// </summary>
        [StringLength(50)]
        public string order_no { get; set; }

        /// <summary>
        /// 微信订单号
        /// </summary>
        [StringLength(50)]
        public string payment_no { get; set; }

        /// <summary>
        /// 支付参数
        /// </summary>
        [StringLength(2000)]
        public string request_xml { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(2000)]
        public string remarks { get; set; }
    }
}
